package com.zhenzhang.myblog.utils.validator.permission;

import com.zhenzhang.myblog.entity.role.UserRole;

public class IncludeValidator implements PermissionValidator{
    @Override
    public boolean valid(UserRole input, UserRole[] candidate) {
        for (UserRole userRole : candidate) {
            if (input == userRole) {
                return true;
            }
        }
        return false;
    }
}
